.chat-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    
    &__header {
        padding: 16px 20px;
        border-bottom: 1px solid #f0f0f0;
        background-color: #fff;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    &__title {
        margin: 0 !important;
    }
    
    &__meta {
        margin-left: 8px;
    }
    
    &__messages {
        flex: 1;
        overflow-y: auto;
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 16px;
        background-color: #f5f5f5;
    }
    
    &__empty {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        text-align: center;
        padding: 24px;
    }
    
    &__features {
        display: flex;
        gap: 16px;
        margin-top: 24px;
        width: 100%;
        justify-content: center;
    }
    
    &__feature {
        width: 160px;
        
        .ant-card-body {
            padding: 12px;
        }
    }
    
    &__welcome {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        text-align: center;
    }
    
    &__input-area {
        padding: 16px 20px;
        border-top: 1px solid #f0f0f0;
        background-color: #fff;
    }
    
    &__form {
        width: 100%;
    }
    
    &__input-wrapper {
        display: flex;
        align-items: flex-end;
        gap: 12px;
        width: 100%;
    }
    
    &__input {
        flex: 1;
        border-radius: 8px;
        
        textarea {
            min-height: 40px;
            max-height: 160px;
            line-height: 1.5;
            padding: 8px 12px;
            
            &.ant-input {
                resize: none;
            }
        }
        
        .ant-input-suffix {
            margin-left: 8px;
        }
    }
    
    &__send-button {
        flex-shrink: 0;
        min-width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        
        &.ant-btn-circle {
            width: 40px;
            border-radius: 50%;
        }
        
        .anticon {
            font-size: 16px;
        }
    }
}

// 待确认消息操作区域
.chat-content__pending-actions {
    padding: 12px 20px;
    border-top: 1px solid #f0f0f0;
    background-color: #fffbe6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-content__pending-info {
    display: flex;
    align-items: center;
}

.chat-content__pending-buttons {
    display: flex;
    gap: 8px;
}

// 响应式调整
@media (max-width: 768px) {
    .chat-content__features {
        flex-direction: column;
        align-items: center;
    }
    
    .chat-message__content {
        max-width: 90%;
    }
}

// 聊天消息样式
.chat-message {
    display: flex;
    gap: 12px;
    max-width: 100%;
    
    &--user {
        align-self: flex-end;
        flex-direction: row-reverse;
        
        .chat-message__content {
            background-color: #e6f7ff;
            border-radius: 8px 8px 2px 8px;
        }
        
        .chat-message__header {
            flex-direction: row-reverse;
        }
    }
    
    &--assistant {
        align-self: flex-start;
        
        .chat-message__content {
            background-color: #fff;
            border-radius: 8px 8px 8px 2px;
            border: 1px solid #f0f0f0;
        }
    }
    
    &--pending {
        align-self: flex-start;
        
        .chat-message__content {
            background-color: #fffbe6;
            border-radius: 8px 8px 8px 2px;
            border: 1px solid #ffe58f;
        }
    }
    
    &--streaming {
        align-self: flex-start;
        
        .chat-message__content {
            background-color: #f6ffed;
            border-radius: 8px 8px 8px 2px;
            border: 1px solid #b7eb8f;
        }
    }
    
    &__avatar {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    
    &__user-avatar {
        background-color: #1890ff;
    }
    
    &__assistant-avatar {
        background-color: #52c41a;
    }
    
    &__content {
        padding: 12px 16px;
        max-width: 80%;
    }
    
    &__header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;
    }
    
    &__text {
        margin-bottom: 0 !important;
        white-space: pre-wrap;
        word-break: break-word;
    }
    
    &__streaming-text {
        margin-bottom: 0 !important;
        white-space: pre-wrap;
        word-break: break-word;
        position: relative;
    }
    
    &__actions {
        display: flex;
        gap: 8px;
        margin-top: 12px;
        justify-content: flex-end;
    }
}

// 滚动条样式
.chat-content__messages {
    &::-webkit-scrollbar {
        width: 6px;
    }
    
    &::-webkit-scrollbar-track {
        background: transparent;
    }
    
    &::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 3px;
        
        &:hover {
            background: #9ca3af;
        }
    }
}

// 打字机动画样式
.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: #1890ff;
    margin-left: 2px;
    animation: blink 1s infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

// 流式消息状态标识
.streaming-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #52c41a;
    margin-top: 4px;
    
    .anticon {
        font-size: 12px;
    }
}

// 响应式设计
@media (max-width: 768px) {
    .chat-content {
        &__messages {
            padding: 16px;
        }
        
        &__input-area {
            padding: 12px 16px;
        }
    }
    
    .chat-message {
        &__content {
            max-width: 85%;
        }
    }
}